﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Domain.MainBoundedContext.StockModule;
using Huirui.Cavan.Domain.Seedwork;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;

namespace Huirui.Cavan.Domain.MainBoundedContext.SalesModule
{
    public class SalesPriceDetail : Persistent<long>
    {
        #region Member Variables
        protected SalesPrice _salesPrice;
        protected Stock _stock;
        protected decimal _unitCost;
        protected decimal _discountRate;
        #endregion

        #region Constructors
        public SalesPriceDetail() 
        { 
        }

        public SalesPriceDetail(SalesPrice salesPrice, Stock stock, decimal unitCost, decimal discountRate, DateTime createDate, DateTime modifyDate, int editUser)
        {
            this._salesPrice = salesPrice;
            this._stock = stock;
            this._unitCost = unitCost;
            this._discountRate = discountRate;
            this._createDate = createDate;
            this._modifyDate = modifyDate;
            this._editUser = editUser;
        }
        #endregion

        #region Public Properties
        public virtual SalesPrice SalesPrice
        {
            get { return _salesPrice; }
            set
            {
                _salesPrice = value;
            }
        }

        public virtual Stock Stock
        {
            get { return _stock; }
            set { _stock = value; }
        }

        public virtual decimal UnitCost
        {
            get { return _unitCost; }
            set { _unitCost = value; }
        }

        public virtual decimal DiscountRate
        {
            get { return _discountRate; }
            set { _discountRate = value; }
        }
        #endregion
    }
}
